// samsting : this file is auto create.

#include "Slb/2014-05-15/DescribeZonesResponse.h"

namespace aliyun { namespace Slb {

DescribeZonesResponse::DescribeZonesResponse() {
}

const string& DescribeZonesResponse::Zone::SlaveZone::GetZoneId(void) const {
  return ZoneId_;
}

const string& DescribeZonesResponse::Zone::SlaveZone::GetLocalName(void) const {
  return LocalName_;
}

const std::vector<DescribeZonesResponse::Zone::SlaveZone>& DescribeZonesResponse::Zone::GetSlaveZones(void) const {
  return SlaveZones_;
}

const string& DescribeZonesResponse::Zone::GetZoneId(void) const {
  return ZoneId_;
}

const string& DescribeZonesResponse::Zone::GetLocalName(void) const {
  return LocalName_;
}

const std::vector<DescribeZonesResponse::Zone>& DescribeZonesResponse::GetZones(void) const {
  return Zones_;
}

const char* DescribeZonesResponse::BaseKey(void) {
  return "DescribeZonesResponse";
}

void DescribeZonesResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  int Zones__length = 0;
  UnmarshallerInt(Zones__length, response_map, "DescribeZonesResponse.Zones.Length");
  if(Zones__length >= 0) {
    Zones_.resize(Zones__length);
    for(int i1 = 0; i1 < Zones__length; i1++) {
      int Zones_i1_SlaveZones__length = 0;
      UnmarshallerInt(Zones_i1_SlaveZones__length, response_map, "DescribeZonesResponse.Zones[+"+string_ValueOfInt(i1)+"].SlaveZones.Length");
      if(Zones_i1_SlaveZones__length >= 0) {
        Zones_[i1].SlaveZones_.resize(Zones_i1_SlaveZones__length);
        for(int i2 = 0; i2 < Zones_i1_SlaveZones__length; i2++) {
          UnmarshallerString(Zones_[i1].SlaveZones_[i2].ZoneId_, response_map, "DescribeZonesResponse.Zones[+"+string_ValueOfInt(i1)+"].SlaveZones["+string_ValueOfInt(i2)+"].ZoneId");
          UnmarshallerString(Zones_[i1].SlaveZones_[i2].LocalName_, response_map, "DescribeZonesResponse.Zones[+"+string_ValueOfInt(i1)+"].SlaveZones["+string_ValueOfInt(i2)+"].LocalName");
        } // for(int i2 = 0; i2 < Zones_i1_SlaveZones__length; i2++) {
      } // if(Zones_i1_SlaveZones__length >= 0) {

      UnmarshallerString(Zones_[i1].ZoneId_, response_map, "DescribeZonesResponse.Zones["+string_ValueOfInt(i1)+"].ZoneId");
      UnmarshallerString(Zones_[i1].LocalName_, response_map, "DescribeZonesResponse.Zones["+string_ValueOfInt(i1)+"].LocalName");
    } // for(int i1 = 0; i1 < Zones__length; i1++) {
  } // if(Zones__length >= 0) {

}


} } // namespace aliyun { namespace Slb {

// end of file 
